﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FurStudy.EntityFramework.Core
{
    /// <summary>
    /// 创建其他数据库上下文
    /// 所有数据库上下文都应该在Furion.EntityFramework.Core项目中创建。另外如果系统用到了多个数据库，那么从第二个开始必须指定数据库上下文定位器
    /// </summary>
    [AppDbContext("连接字符串或appsetting.json 键")]
    public class FurOtherDbContext: AppDbContext<FurOtherDbContext, FurOtherDbContextLocator>  // 继承 AppDbContext<> 类
    {
        /// <summary>
        /// 继承父类构造函数
        /// </summary>
        /// <param name="options"></param>
        public FurOtherDbContext(DbContextOptions<FurOtherDbContext> options) : base(options)
        {
        }
    }
}
